<?php /* Smarty version 2.6.26, created on 2010-11-16 18:01:40
         compiled from companies.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'cycle', 'companies.tpl', 26, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<?php if (isset ( $this->_tpl_vars['info_action'] )): ?>
	<div class="info i_<?php echo $this->_tpl_vars['info_color']; ?>
">
		<?php echo $this->_tpl_vars['info_action']; ?>

	</div>
<?php endif; ?>
<h3><?php echo $this->_tpl_vars['title']; ?>
</h3>

<div class="table_div" >
<form method="post" id="show_practices">
	<table class="practices_tab">
		<thead>
			<tr>
				<th></th>
				<th><a href="#" class="tip_trigger">Lp.<span class="tip">Sortuj wg Lp.</span></a></th>
				<th><a href="#" class="tip_trigger">Data rejestracji<span class="tip">Sortuj wg daty rejestracji.</span></a></th>
				<th><a href="#" class="tip_trigger">Nazwa<span class="tip">Sortuj wg nazwy.</span></a></th>
				<th>Telefon</th>
				<th>Strona www</th>
				<th>Akcje</th>
			</tr>
		</thead>
		<tbody>
			<?php $_from = $this->_tpl_vars['companies']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['company'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['company']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['company']):
        $this->_foreach['company']['iteration']++;
?>
			<tr style="background-color:<?php echo smarty_function_cycle(array('values' => "#F6F6F6,white"), $this);?>
">
				<td><input type="checkbox" name="cb[]" id="cb[]" value="<?php echo $this->_tpl_vars['company']['id']; ?>
"/></td>
				<td><?php echo $this->_foreach['company']['iteration']; ?>
</td>
				<td><?php echo $this->_tpl_vars['company']['reg_date']; ?>
</td>
				<td><?php echo $this->_tpl_vars['company']['name']; ?>
</td>
				<td><?php echo $this->_tpl_vars['company']['phone']; ?>
</td>
				<td><?php echo $this->_tpl_vars['company']['site']; ?>
</td>
				<td>
					<a href ="ucompanies.php?show_id=<?php echo $this->_tpl_vars['company']['id']; ?>
" class="tip_trigger" ><span class="tip">Pokaż szczegóły</span><img src="../images/magnifier-left.png"/></a>
					&nbsp 			
					<a href ="companies.php?remove_id=<?php echo $this->_tpl_vars['company']['id']; ?>
" class="tip_trigger" ><span class="tip">Usuń studenta</span><img src="../images/cross.png"/></a>
				</td>
			</tr>
			<?php endforeach; endif; unset($_from); ?>
		</tbody>
	<table>
</form>
	<div>
		<input type="button"  value="Zaznacz" onclick="jqCheckAll('show_practices', 'cb[]', 1);" class="button b_blue"/>
		<input type="button"  value="Odznacz" onclick="jqCheckAll('show_practices', 'cv[]', 0);" class="button b_blue"/>
		<input type="submit" name="delete" id="delete" value="Usuń" class="button b_red"/>
	</div>
</div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "footer.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>